/*
 * @Author: zhaiyujia
 * @Date: 2022-11-16 00:43:31
 * @LastEditors: zhaiyujia
 * @LastEditTime: 2022-11-20 20:15:48
 * @Description: file content
 */

#include "Arduino.h"

void setup()
{
    Serial_begin(115200);
    delay(1500); // Wait for STC-ISP to open the serial port
    Serial_println("Hello Arduino-STC.");
}
void loop()
{
    Serial_printf("P1.0=%u ,Voltage=%f\r\n", analogRead(A00), map(analogRead(A00), 0, 1023, 0, 5.0));
    delay(1000);
}